package com.sm.appbase.net.base;



import lombok.Data;

/**
 * @author Forty'7 2019.8.5
 * @Title: BaseResult
 */
@Data
public class BaseResult<T> {
    private T data;
    private int code;//200:成功
    private String msg;
    public Optional<T> transform(){
        return new Optional<>(data);
    }
}
